package com.yx.feign.api;

import com.yx.vo.StockParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @Classname StockServer
 * @Date 2021/07/21 17:41
 * @Author by yx
 * @Description TODO:
 */
@FeignClient(
        name = "shop-goods",
        path = "/stock"
)
public interface StockService {

    @RequestMapping("/lockGoodsStock")
    Boolean lockGoodsStock(List<StockParam> stockParamList);
}
